package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 参与人员对象 dz_hyuser
 * 
 * @author ruoyi
 * @date 2023-11-12
 */
public class DzHyuser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 参与id */
    private Long cyId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 加入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date joinTime;

    /** 离开时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "离开时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date leaveTime;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    /** 会议id */
    @Excel(name = "会议id")
    private Long hyId;

    public void setCyId(Long cyId) 
    {
        this.cyId = cyId;
    }

    public Long getCyId() 
    {
        return cyId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setJoinTime(Date joinTime) 
    {
        this.joinTime = joinTime;
    }

    public Date getJoinTime() 
    {
        return joinTime;
    }
    public void setLeaveTime(Date leaveTime) 
    {
        this.leaveTime = leaveTime;
    }

    public Date getLeaveTime() 
    {
        return leaveTime;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setHyId(Long hyId) 
    {
        this.hyId = hyId;
    }

    public Long getHyId() 
    {
        return hyId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cyId", getCyId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("joinTime", getJoinTime())
            .append("leaveTime", getLeaveTime())
            .append("state", getState())
            .append("hyId", getHyId())
            .toString();
    }
}
